//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Spreadsheet.Expressions;

namespace OpenLS.Spreadsheet.Formats.Biff.Tokens
{
    internal class ParenthesesToken : EmptyFormulaToken
    {
        public override FormulaTokenId TokenId
        {
            get { return FormulaTokenId.Paren; }
        }
        internal override Expression GetExpression(FormulaEvaluationContext context)
        {
            FormulaToken t = context.PoppedArgument();
            return new ParenthesizedExpression(t.GetExpression(context));
        }
    }
}